   <?php include 'header.php'; ?>

    <body>
         <?php include '../menus/menuUsuario.php'; ?>
        <?php include 'sidebar.php'; ?>
        <div class="content">
            <?php $noticia = obtenerNoticia($_POST['bid']); ?>
            <div class="header">
                <!--<div style="float:left;padding:0px 10px 10px 10px;">-->
                    <h1><?php echo $noticia['titular']; ?></h1>
                <!--</div>-->
               
            </div>
            <div style="width:100%;margin-bottom:215px;">
                <div style="margin:0 auto;width:90%;text-align:center;padding:10px;">
                    <img style="max-height:400px;border-radius:10px;" src="../<?php echo $noticia['imagen']; ?>">
                </div>
               
                <div style="margin:0 auto;width:90%;font-size:30px;">
                    <?php echo $noticia['titular']; ?>
                </div>
                
                <div style="margin:0 auto;width:90%;font-size:20px;margin-bottom:10px;">
                    <div style="float:left;text-align:left;">
                        by <font style="color:#5789ad"><?php echo $noticia['nombre']." ".$noticia['apellidos'] ?></font>
                    </div>
                    <div style="float:right;margin:0 auto;font-size:13px;color:gray;padding:10px 0 10px 0;text-align:right;">
                        <i class="glyphicon glyphicon-calendar"></i>&nbsp;<?php echo formatoFecha($noticia['fecha'])." a las ".  formatoHora($noticia['fecha']); ?>    
                    </div>
                    <div style="clear:both"></div>
                </div>
                
                <div style="margin:0 auto;width:90%;font-size:20px;">
                    
                </div>
                
                <div style="margin:0 auto;width:90%;font-size:16px;padding:10px;background:whitesmoke;border-radius:5px;">
                    <?php echo $noticia['resumen']; ?>
                </div>
                
                <div style="margin:0 auto;width:90%;font-size:15px;padding:10px 0 10px">
                    <?php echo $noticia['cuerpo']; ?>
                </div>
                <div class="cartel">
                    Comentarios
                </div>
                
            </div>
            <div style='width:100%;margin-left:12px;'>
                    <?php include 'footer.php'; ?>
                </div>
            <div style="clear:both"></div>
            
        </div>
    </body>
</html>